package com.jl.jlapp.adapter;

import android.content.res.Resources;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.jl.jlapp.R;
import com.jl.jlapp.eneity.ShipAddressModel;
import com.jl.jlapp.eneity.ShipAddressModel.ResultDataBean;
import java.util.List;

public class ChooseSendToAddressAdapter
  extends BaseQuickAdapter<ResultDataBean, BaseViewHolder>
{
  private String chooseAddress = "";
  
  public ChooseSendToAddressAdapter(int paramInt, @Nullable List<ResultDataBean> paramList)
  {
    super(paramInt, paramList);
  }
  
  protected void convert(BaseViewHolder paramBaseViewHolder, ResultDataBean paramResultDataBean)
  {
    paramBaseViewHolder.setText(R.id.choose_address_location, paramResultDataBean.getRegion() + paramResultDataBean.getDetailedAddress());
    TextView localTextView = (TextView)paramBaseViewHolder.getView(R.id.choose_address_location);
    ImageView localImageView1 = (ImageView)paramBaseViewHolder.getView(R.id.choose_address_location_img);
    ImageView localImageView2 = (ImageView)paramBaseViewHolder.getView(R.id.choose_address_location_checkmark_img);
    localTextView.setTextColor(paramBaseViewHolder.itemView.getResources().getColor(R.color.trans_333333));
    localImageView1.setImageDrawable(paramBaseViewHolder.itemView.getResources().getDrawable(R.drawable.icon_location_gray_m));
    localImageView2.setVisibility(View.GONE);
    if ((paramResultDataBean.getRegion() + paramResultDataBean.getDetailedAddress()).equals(this.chooseAddress))
    {
      localTextView.setTextColor(paramBaseViewHolder.itemView.getResources().getColor(R.color.checkGreenColor));
      localImageView1.setImageDrawable(paramBaseViewHolder.itemView.getResources().getDrawable(R.drawable.icon_location_green_m));
      localImageView2.setVisibility(View.VISIBLE);
    }
  }
  
  public void setChooseAddress(String paramString)
  {
    this.chooseAddress = paramString;
  }
}


/* Location:              /Users/davidzhang/Documents/decompileApk/jlfood-dex2jar.jar!/com/jl/jlapp/adapter/ChooseSendToAddressAdapter.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */